<script src="__PUBLIC__/js/jquery-1.11.1.min.js"></script>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>
<script type="text/javascript">
	var login = document.getElementById('login');
	login.onclick = function(){
		var manager = document.getElementById("manager").value;
		var password = document.getElementById("password").value;
		var xhr = new XMLHttpRequest();
		xhr.open("POST", "<{:U('Index/login')}>");
		xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xhr.send('manager='+manager+'&password='+password);
		xhr.onload = function(){
			if(xhr.responseText){
				window.location.href = "<{:U('Index/index')}>";
			}else{
				alert("验证失败");
			}
		}
	}
</script>
</body>
</html>
